function detectIE(){ var t=window.navigator.userAgent, e=t.indexOf("MSIE "); if(e > 0) return parseInt(t.substring(e + 5, t.indexOf(".", e)), 10); var i=t.indexOf("Trident/"); if(i > 0){ var o=t.indexOf("rv:"); return parseInt(t.substring(o + 3, t.indexOf(".", o)), 10) } var n=t.indexOf("Edge/"); return n > 0&&parseInt(t.substring(n + 5, t.indexOf(".", n)), 10) } function scrollHandler(){ var t=jQuery(".parallax .secondary"), e=.08; if(jQuery(window).width() < 640&&(e=.13), t.length > 0) for (var i=0; i < t.length; i++){ var o=t[i], n=jQuery(o).offset().top, s=jQuery(window).scrollTop(), r=window.innerHeight, a=n - s, l=r - a; jQuery(o).css("transform", "translateY(" + l * e + "%)") }} function howWeRollScrollHandler(){ var t=jQuery("#how-we-roll-5 .grid-left .image"), e=-.03; if(t.length > 0) for (var i=0; i < t.length; i++){ var o=t[i], n=jQuery(o).offset().top, s=jQuery(window).scrollTop(), r=window.innerHeight, a=n - s, l=r - a; jQuery(o).css("transform", "translateY(" + l * e + "%)") }} function viewportRatio(){ var t=jQuery(window).width() / jQuery(window).height(); t > 2.2 ? (jQuery("body").removeClass("viewport-tall"), jQuery("body").addClass("viewport-wide")):t < .6 ? (jQuery("body").removeClass("viewport-wide"), jQuery("body").addClass("viewport-tall")):jQuery("body").removeClass("viewport-wide viewport-tall") } jQuery(document).ready(), jQuery(document).ready(function(t){ if(window.MFFrontPage={ _bindEvents: function(){ var e=this; t(window).on("load", function(){ e.deferLoadImages() }), t("#front-page-get-started").length > 0&&e.getStartedStickyNav(), t(document).on("get-started-sticky-section", function(t){ e.setActiveNavDot(t.sectionID) }) }, setActiveNavDot: function(e){ t(".nav-dot, .nav-dot-text").removeClass("active"), t('.nav-dot[data-sticky-section-id="' + e + '"]').addClass("active"), t('.nav-dot-text[data-sticky-section-id="' + e + '"]').addClass("active") }, deferLoadImages: function(){ t("[data-src]").each(function(){ var e=t(this).data("src"); "IMG"===this.tagName ? t(this).prop("src", e):t(this).css("background-image", 'url("' + e + '")') }) }, makeNavDotsSticky: function(){ t(".nav-dots").addClass("stuck"), t(".nav-dots").removeClass("stuck-bottom"), t(".nav-dots").css("top", 0) }, navDotsBottomPosition: function(e, i){ var o=e - i; t(".nav-dots").removeClass("stuck"), t(".nav-dots").addClass("stuck-bottom"), t(".nav-dots").css("top", o) }, getStartedStickyNav: function(){ var e=this, i = !1; t(window).on("scroll resize", function(){ var o=t("#front-page-get-started").offset().top, n=t("#front-page-get-started .section-marietv").offset().top, s=t(window).scrollTop(); o < s&&n > s ? (e.makeNavDotsSticky(), t(document).trigger({ type: "get-started-sticky-section", sectionID: 1 }), n - 300 < s&&t(document).trigger({ type: "get-started-sticky-section", sectionID: 2 }), i = !1):(n < s&&!i&&(e.navDotsBottomPosition(s, o), i = !0), t(".nav-dots").removeClass("stuck")) }) }}, function(){ var e, i, o, n, s, r=t("#page-front-page").find(".parallax blockquote"); r.removeClass(), r.clone().appendTo(t("#page-front-page").find(".parallax")), t("body.page-home").length&&t(window).on("scroll resize", function(a){ i=t(window).height(), o=t(document).scrollTop(), r=t("#page-front-page").find(".parallax > blockquote"), parallaxSection=t("#page-front-page").find(".parallax"), parallaxSectionHeight=parallaxSection.height(), e=parallaxSection.find("> section"), parallaxSection.offset().top - .33 * i < o ? (e.each(function(){ n=t(this), n.offset().top - .4 * i < o&&(s=n[0].id) }), r.removeClass("active"), r.filter('[data-id="' + s + '"]').addClass("active")):r.removeClass("active"), o > parallaxSection.offset().top + parallaxSectionHeight - .7 * i&&r.removeClass("active") }) }(), t("#page-front-page").length){ new Waypoint({ element: document.getElementById("word-stream-footer"), handler: function(){ t(".word-stream-footer span:first-child").addClass("js-fade-element-show"), setTimeout(function(){ t(".word-stream-footer span:last-child").addClass("js-fade-element-show") }, 1e3) }, offset: "bottom-in-view" }) } t(window).resize(function(){ t(".slider-get-started").removeClass("inView") }), t(document).bind("mousewheel DOMMouseScroll MozMousePixelScroll", function(i){ if(t(".slider-get-started").hasClass("inView")){ i.preventDefault(); var o=i.originalEvent.wheelDelta||-i.originalEvent.detail; e(i, o) }}); var i }), ! function(){ "use strict"; function t(o){ if(!o) throw new Error("No options passed to Waypoint constructor"); if(!o.handler) throw new Error("No handler option passed to Waypoint constructor"); this.key="waypoint-" + e, this.options=t.Adapter.extend({}, t.defaults, o), this.element=this.options.element, this.adapter=new t.Adapter(this.element), this.callback=o.handler, this.axis=this.options.horizontal ? "horizontal":"vertical", this.enabled=this.options.enabled, this.triggerPoint=null, this.group=t.Group.findOrCreate({ name: this.options.group, axis: this.axis }), this.context=t.Context.findOrCreateByElement(this.options.context), t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]), this.group.add(this), this.context.add(this), i[this.key]=this, e +=1 } var e=0, i={}; t.prototype.queueTrigger=function(t){ this.group.queueTrigger(this, t) }, t.prototype.trigger=function(t){ this.enabled&&this.callback&&this.callback.apply(this, t) }, t.prototype.destroy=function(){ this.context.remove(this), this.group.remove(this), delete i[this.key] }, t.prototype.disable=function(){ return this.enabled = !1, this }, t.prototype.enable=function(){ return this.context.refresh(), this.enabled = !0, this }, t.prototype.next=function(){ return this.group.next(this) }, t.prototype.previous=function(){ return this.group.previous(this) }, t.invokeAll=function(t){ var e=[]; for (var o in i) e.push(i[o]); for (var n=0, s=e.length; s > n; n++) e[n][t]() }, t.destroyAll=function(){ t.invokeAll("destroy") }, t.disableAll=function(){ t.invokeAll("disable") }, t.enableAll=function(){ t.invokeAll("enable") }, t.refreshAll=function(){ t.Context.refreshAll() }, t.viewportHeight=function(){ return window.innerHeight||document.documentElement.clientHeight }, t.viewportWidth=function(){ return document.documentElement.clientWidth }, t.adapters=[], t.defaults={ context: window, continuous: !0, enabled: !0, group: "default", horizontal: !1, offset: 0 }, t.offsetAliases={ "bottom-in-view": function(){ return this.context.innerHeight() - this.adapter.outerHeight() }, "right-in-view": function(){ return this.context.innerWidth() - this.adapter.outerWidth() }}, window.Waypoint=t }(), function(){ "use strict"; function t(t){ window.setTimeout(t, 1e3 / 60) } function e(t){ this.element=t, this.Adapter=n.Adapter, this.adapter=new this.Adapter(t), this.key="waypoint-context-" + i, this.didScroll = !1, this.didResize = !1, this.oldScroll={ x: this.adapter.scrollLeft(), y: this.adapter.scrollTop() }, this.waypoints={ vertical: {}, horizontal: {}}, t.waypointContextKey=this.key, o[t.waypointContextKey]=this, i +=1, this.createThrottledScrollHandler(), this.createThrottledResizeHandler() } var i=0, o={}, n=window.Waypoint, s=window.onload; e.prototype.add=function(t){ var e=t.options.horizontal ? "horizontal":"vertical"; this.waypoints[e][t.key]=t, this.refresh() }, e.prototype.checkEmpty=function(){ var t=this.Adapter.isEmptyObject(this.waypoints.horizontal), e=this.Adapter.isEmptyObject(this.waypoints.vertical); t&&e && (this.adapter.off(".waypoints"), delete o[this.key]) }, e.prototype.createThrottledResizeHandler=function(){ function t(){ e.handleResize(), e.didResize = !1 } var e=this; this.adapter.on("resize.waypoints", function(){ e.didResize||(e.didResize = !0, n.requestAnimationFrame(t)) }) }, e.prototype.createThrottledScrollHandler=function(){ function t(){ e.handleScroll(), e.didScroll = !1 } var e=this; this.adapter.on("scroll.waypoints", function(){ (!e.didScroll||n.isTouch)&&(e.didScroll = !0, n.requestAnimationFrame(t)) }) }, e.prototype.handleResize=function(){ n.Context.refreshAll() }, e.prototype.handleScroll=function(){ var t={}, e={ horizontal: { newScroll: this.adapter.scrollLeft(), oldScroll: this.oldScroll.x, forward: "right", backward: "left" }, vertical: { newScroll: this.adapter.scrollTop(), oldScroll: this.oldScroll.y, forward: "down", backward: "up" }}; for (var i in e){ var o=e[i], n=o.newScroll > o.oldScroll, s=n ? o.forward:o.backward; for (var r in this.waypoints[i]){ var a=this.waypoints[i][r], l=o.oldScroll < a.triggerPoint, d=o.newScroll >=a.triggerPoint, c=l&&d, u = !l&&!d; (c||u)&&(a.queueTrigger(s), t[a.group.id]=a.group) }} for (var p in t) t[p].flushTriggers(); this.oldScroll={ x: e.horizontal.newScroll, y: e.vertical.newScroll }}, e.prototype.innerHeight=function(){ return this.element==this.element.window ? n.viewportHeight():this.adapter.innerHeight() }, e.prototype.remove=function(t){ delete this.waypoints[t.axis][t.key], this.checkEmpty() }, e.prototype.innerWidth=function(){ return this.element==this.element.window ? n.viewportWidth():this.adapter.innerWidth() }, e.prototype.destroy=function(){ var t=[]; for (var e in this.waypoints) for (var i in this.waypoints[e]) t.push(this.waypoints[e][i]); for (var o=0, n=t.length; n > o; o++) t[o].destroy() }, e.prototype.refresh=function(){ var t, e=this.element==this.element.window, i=e ? void 0:this.adapter.offset(), o={}; this.handleScroll(), t={ horizontal: { contextOffset: e ? 0:i.left, contextScroll: e ? 0:this.oldScroll.x, contextDimension: this.innerWidth(), oldScroll: this.oldScroll.x, forward: "right", backward: "left", offsetProp: "left" }, vertical: { contextOffset: e ? 0:i.top, contextScroll: e ? 0:this.oldScroll.y, contextDimension: this.innerHeight(), oldScroll: this.oldScroll.y, forward: "down", backward: "up", offsetProp: "top" }}; for (var s in t){ var r=t[s]; for (var a in this.waypoints[s]){ var l, d, c, u, p, h=this.waypoints[s][a], f=h.options.offset, m=h.triggerPoint, v=0, g=null==m; }} return n.requestAnimationFrame(function(){ for (var t in o) o[t].flushTriggers() }), this }, e.findOrCreateByElement=function(t){ return e.findByElement(t)||new e(t) }, e.refreshAll=function(){ for (var t in o) o[t].refresh() }, e.findByElement=function(t){ return o[t.waypointContextKey] }, window.onload=function(){ s&&s(), e.refreshAll() }, n.requestAnimationFrame=function(e){ var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t; i.call(window, e) }, n.Context=e }(), function(){ "use strict"; function t(t, e){ return t.triggerPoint - e.triggerPoint } function e(t, e){ return e.triggerPoint - t.triggerPoint } function i(t){ this.name=t.name, this.axis=t.axis, this.id=this.name + "-" + this.axis, this.waypoints=[], this.clearTriggerQueues(), o[this.axis][this.name]=this } var o={ vertical: {}, horizontal: {}}, n=window.Waypoint; i.prototype.add=function(t){ this.waypoints.push(t) }, i.prototype.clearTriggerQueues=function(){ this.triggerQueues={ up: [], down: [], left: [], right: [] }}, i.prototype.flushTriggers=function(){ for (var i in this.triggerQueues){ var o=this.triggerQueues[i], n="up"===i||"left"===i; o.sort(n ? e:t); for (var s=0, r=o.length; r > s; s +=1){ var a=o[s]; (a.options.continuous||s===o.length - 1)&&a.trigger([i]) }} this.clearTriggerQueues() }, i.prototype.next=function(e){ this.waypoints.sort(t); var i=n.Adapter.inArray(e, this.waypoints), o=i===this.waypoints.length - 1; return o ? null:this.waypoints[i + 1] }, i.prototype.previous=function(e){ this.waypoints.sort(t); var i=n.Adapter.inArray(e, this.waypoints); return i ? this.waypoints[i - 1]:null }, i.prototype.queueTrigger=function(t, e){ this.triggerQueues[e].push(t) }, i.prototype.remove=function(t){ var e=n.Adapter.inArray(t, this.waypoints); e > -1&&this.waypoints.splice(e, 1) }, i.prototype.first=function(){ return this.waypoints[0] }, i.prototype.last=function(){ return this.waypoints[this.waypoints.length - 1] }, i.findOrCreate=function(t){ return o[t.axis][t.name]||new i(t) }, n.Group=i }(), function(){ "use strict"; function t(t){ this.$element=e(t) } var e=window.jQuery, i=window.Waypoint; e.each(["innerHeight", "innerWidth", "off", "offset", "on", "outerHeight", "outerWidth", "scrollLeft", "scrollTop"], function(e, i){ t.prototype[i]=function(){ var t=Array.prototype.slice.call(arguments); return this.$element[i].apply(this.$element, t) }}), e.each(["extend", "inArray", "isEmptyObject"], function(i, o){ t[o]=e[o] }), i.adapters.push({ name: "jquery", Adapter: t }), i.Adapter=t }(), function(){ "use strict"; function t(t){ return function(){ var i=[], o=arguments[0]; return t.isFunction(arguments[0])&&(o=t.extend({}, arguments[1]), o.handler=arguments[0]), this.each(function(){ var n=t.extend({}, o, { element: this }); "string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]), i.push(new e(n)) }), i }} var e=window.Waypoint; window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)), window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto)) }(), ! function(t){ function e(){} function i(t){ function i(e){ e.prototype.option||(e.prototype.option=function(e){ t.isPlainObject(e)&&(this.options=t.extend(!0, this.options, e)) }) } function n(e, i){ t.fn[e]=function(n){ if("string"==typeof n){ for (var r=o.call(arguments, 1), a=0, l=this.length; l > a; a++){ var d=this[a], c=t.data(d, e); if(c) if(t.isFunction(c[n])&&"_"!==n.charAt(0)){ var u=c[n].apply(c, r); if(void 0!==u) return u } else s("no such method '" + n + "' for " + e + " instance"); else s("cannot call methods on " + e + " prior to initialization; attempted to call '" + n + "'") } return this } return this.each(function(){ var o=t.data(this, e); o ? (o.option(n), o._init()):(o=new i(this, n), t.data(this, e, o)) }) }} if(t){ var s="undefined"==typeof console ? e:function(t){ console.error(t) }; return t.bridget=function(t, e){ i(e), n(t, e) }, t.bridget }} var o=Array.prototype.slice; "function"==typeof define&&define.amd ? define("jquery-bridget/jquery.bridget", ["jquery"], i):i("object"==typeof exports ? require("jquery"):t.jQuery) }(window), function(t){ function e(e){ var i=t.event; return i.target=i.target||i.srcElement||e, i } var i=document.documentElement, o=function(){}; i.addEventListener ? o=function(t, e, i){ t.addEventListener(e, i, !1) }:i.attachEvent&&(o=function(t, i, o){ t[i + o]=o.handleEvent ? function(){ var i=e(t); o.handleEvent.call(o, i) }:function(){ var i=e(t); o.call(t, i) }, t.attachEvent("on" + i, t[i + o]) }); var n=function(){}; i.removeEventListener ? n=function(t, e, i){ t.removeEventListener(e, i, !1) }:i.detachEvent&&(n=function(t, e, i){ t.detachEvent("on" + e, t[e + i]); try { delete t[e + i] } catch (o){ t[e + i]=void 0 }}); var s={ bind: o, unbind: n }; "function"==typeof define&&define.amd ? define("eventie/eventie", s):"object"==typeof exports ? module.exports=s:t.eventie=s }(window), function(){ "use strict"; function t(){} function e(t, e){ for (var i=t.length; i--;) if(t[i].listener===e) return i; return -1 } function i(t){ return function(){ return this[t].apply(this, arguments) }} var o=t.prototype, n=this, s=n.EventEmitter; o.getListeners=function(t){ var e, i, o=this._getEvents(); if(t instanceof RegExp){ e={}; for (i in o) o.hasOwnProperty(i)&&t.test(i)&&(e[i]=o[i]) } else e=o[t]||(o[t]=[]); return e }, o.flattenListeners=function(t){ var e, i=[]; for (e=0; e < t.length; e +=1) i.push(t[e].listener); return i }, o.getListenersAsObject=function(t){ var e, i=this.getListeners(t); return i instanceof Array&&(e={}, e[t]=i), e||i }, o.addListener=function(t, i){ var o, n=this.getListenersAsObject(t), s="object"==typeof i; for (o in n) n.hasOwnProperty(o)&&-1===e(n[o], i)&&n[o].push(s ? i:{ listener: i, once: !1 }); return this }, o.on=i("addListener"), o.addOnceListener=function(t, e){ return this.addListener(t, { listener: e, once: !0 }) }, o.once=i("addOnceListener"), o.defineEvent=function(t){ return this.getListeners(t), this }, o.defineEvents=function(t){ for (var e=0; e < t.length; e +=1) this.defineEvent(t[e]); return this }, o.removeListener=function(t, i){ var o, n, s=this.getListenersAsObject(t); for (n in s) s.hasOwnProperty(n)&&(o=e(s[n], i), -1!==o&&s[n].splice(o, 1)); return this }, o.off=i("removeListener"), o.addListeners=function(t, e){ return this.manipulateListeners(!1, t, e) }, o.removeListeners=function(t, e){ return this.manipulateListeners(!0, t, e) }, o.manipulateListeners=function(t, e, i){ var o, n, s=t ? this.removeListener:this.addListener, r=t ? this.removeListeners:this.addListeners; if("object"!=typeof e||e instanceof RegExp) for (o=i.length; o--;) s.call(this, e, i[o]); else for (o in e) e.hasOwnProperty(o)&&(n=e[o])&&("function"==typeof n ? s.call(this, o, n):r.call(this, o, n)); return this }, o.removeEvent=function(t){ var e, i=typeof t, o=this._getEvents(); if("string"===i) delete o[t]; else if(t instanceof RegExp) for (e in o) o.hasOwnProperty(e)&&t.test(e)&&delete o[e]; else delete this._events; return this }, o.removeAllListeners=i("removeEvent"), o.emitEvent=function(t, e){ var i, o, n, s, r=this.getListenersAsObject(t); for (n in r) if(r.hasOwnProperty(n)) for (o=r[n].length; o--;) i=r[n][o], i.once===!0&&this.removeListener(t, i.listener), s=i.listener.apply(this, e||[]), s===this._getOnceReturnValue()&&this.removeListener(t, i.listener); return this }, o.trigger=i("emitEvent"), o.emit=function(t){ var e=Array.prototype.slice.call(arguments, 1); return this.emitEvent(t, e) }, o.setOnceReturnValue=function(t){ return this._onceReturnValue=t, this }, o._getOnceReturnValue=function(){ return !this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue }, o._getEvents=function(){ return this._events||(this._events={}) }, t.noConflict=function(){ return n.EventEmitter=s, t }, "function"==typeof define&&define.amd ? define("eventEmitter/EventEmitter", [], function(){ return t }):"object"==typeof module&&module.exports ? module.exports=t:n.EventEmitter=t }.call(this), function(t){ function e(t){ if(t){ if("string"==typeof o[t]) return t; t=t.charAt(0).toUpperCase() + t.slice(1); for (var e, n=0, s=i.length; s > n; n++) if(e=i[n] + t, "string"==typeof o[e]) return e }} var i="Webkit Moz ms Ms O".split(" "), o=document.documentElement.style; "function"==typeof define&&define.amd ? define("get-style-property/get-style-property", [], function(){ return e }):"object"==typeof exports ? module.exports=e:t.getStyleProperty=e }(window), function(t, e){ function i(t){ var e=parseFloat(t), i=-1===t.indexOf("%")&&!isNaN(e); return i&&e } function o(){} function n(){ for (var t={ width: 0, height: 0, innerWidth: 0, innerHeight: 0, outerWidth: 0, outerHeight: 0 }, e=0, i=a.length; i > e; e++){ var o=a[e]; t[o]=0 } return t } function s(e){ function s(t){ if(o(), "string"==typeof t&&(t=document.querySelector(t)), t&&"object"==typeof t&&t.nodeType){ var e=d(t); if("none"===e.display) return n(); var s={}; s.width=t.offsetWidth, s.height=t.offsetHeight; for (var r=s.isBorderBox = !(!c||!e[c]||"border-box"!==e[c]), p=0, h=a.length; h > p; p++){ var f=a[p], m=e[f]; m=l(t, m); var v=parseFloat(m); s[f]=isNaN(v) ? 0:v } var g=s.paddingLeft + s.paddingRight, y=s.paddingTop + s.paddingBottom, w=s.marginLeft + s.marginRight, b=s.marginTop + s.marginBottom, k=s.borderLeftWidth + s.borderRightWidth, S=s.borderTopWidth + s.borderBottomWidth, T=r&&u, C=i(e.width); C!==!1&&(s.width=C + (T ? 0:g + k)); var x=i(e.height); return x!==!1&&(s.height=x + (T ? 0:y + S)), s.innerWidth=s.width - (g + k), s.innerHeight=s.height - (y + S), s.outerWidth=s.width + w, s.outerHeight=s.height + b, s }} function l(e, i){ if(t.getComputedStyle||-1===i.indexOf("%")) return i; var o=e.style, n=o.left, s=e.runtimeStyle, r=s&&s.left; return r&&(s.left=e.currentStyle.left), o.left=i, i=o.pixelLeft, o.left=n, r&&(s.left=r), i } var d, c, u, p = !1; return s } var r="undefined"==typeof console ? o:function(t){ console.error(t) }, a=["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"]; "function"==typeof define&&define.amd ? define("get-size/get-size", ["get-style-property/get-style-property"], s):"object"==typeof exports ? module.exports=s(require("desandro-get-style-property")):t.getSize=s(t.getStyleProperty) }(window), function(t){ function e(t){ "function"==typeof t&&(e.isReady ? t():r.push(t)) } function i(t){ var i="readystatechange"===t.type&&"complete"!==s.readyState; e.isReady||i || o() } function o(){ e.isReady = !0; for (var t=0, i=r.length; i > t; t++){ var o=r[t]; o() }} function n(n){ return "complete"===s.readyState ? o():(n.bind(s, "DOMContentLoaded", i), n.bind(s, "readystatechange", i), n.bind(t, "load", i)), e } var s=t.document, r=[]; e.isReady = !1, "function"==typeof define&&define.amd ? define("doc-ready/doc-ready", ["eventie/eventie"], n):"object"==typeof exports ? module.exports=n(require("eventie")):t.docReady=n(t.eventie) }(window), function(t){ "use strict"; function e(t, e){ return t[r](e) } function i(t){ if(!t.parentNode){ var e=document.createDocumentFragment(); e.appendChild(t) }} function o(t, e){ i(t); for (var o=t.parentNode.querySelectorAll(e), n=0, s=o.length; s > n; n++) if(o[n]===t) return !0; return !1 } function n(t, o){ return i(t), e(t, o) } var s, r=function(){ if(t.matches) return "matches"; if(t.matchesSelector) return "matchesSelector"; for (var e=["webkit", "moz", "ms", "o"], i=0, o=e.length; o > i; i++){ var n=e[i], s=n + "MatchesSelector"; if(t[s]) return s }}(); if(r){ var a=document.createElement("div"), l=e(a, "div"); s=l ? e:n } else s=o; "function"==typeof define&&define.amd ? define("matches-selector/matches-selector", [], function(){ return s }):"object"==typeof exports ? module.exports=s:window.matchesSelector=s }(Element.prototype), function(t, e){ "use strict"; "function"==typeof define&&define.amd ? define("fizzy-ui-utils/utils", ["doc-ready/doc-ready", "matches-selector/matches-selector"], function(i, o){ return e(t, i, o) }):"object"==typeof exports ? module.exports=e(t, require("doc-ready"), require("desandro-matches-selector")):t.fizzyUIUtils=e(t, t.docReady, t.matchesSelector) }(window, function(t, e, i){ var o={}; o.extend=function(t, e){ for (var i in e) t[i]=e[i]; return t }, o.modulo=function(t, e){ return (t % e + e) % e }; var n=Object.prototype.toString; o.isArray=function(t){ return "[object Array]"==n.call(t) }, o.makeArray=function(t){ var e=[]; if(o.isArray(t)) e=t; else if(t&&"number"==typeof t.length) for (var i=0, n=t.length; n > i; i++) e.push(t[i]); else e.push(t); return e }, o.indexOf=Array.prototype.indexOf ? function(t, e){ return t.indexOf(e) }:function(t, e){ for (var i=0, o=t.length; o > i; i++) if(t[i]===e) return i; return -1 }, o.removeFrom=function(t, e){ var i=o.indexOf(t, e); - 1!=i&&t.splice(i, 1) }, o.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement ? function(t){ return t instanceof HTMLElement }:function(t){ return t&&"object"==typeof t&&1==t.nodeType&&"string"==typeof t.nodeName }, o.setText=function(){ function t(t, i){ e=e||(void 0!==document.documentElement.textContent ? "textContent":"innerText"), t[e]=i } var e; return t }(), o.getParent=function(t, e){ for (; t!=document.body;) if(t=t.parentNode, i(t, e)) return t }, o.getQueryElement=function(t){ return "string"==typeof t ? document.querySelector(t):t }, o.handleEvent=function(t){ var e="on" + t.type; this[e]&&this[e](t) }, o.filterFindElements=function(t, e){ t=o.makeArray(t); for (var n=[], s=0, r=t.length; r > s; s++){ var a=t[s]; if(o.isElement(a)) if(e){ i(a, e)&&n.push(a); for (var l=a.querySelectorAll(e), d=0, c=l.length; c > d; d++) n.push(l[d]) } else n.push(a) } return n }, o.debounceMethod=function(t, e, i){ var o=t.prototype[e], n=e + "Timeout"; t.prototype[e]=function(){ var t=this[n]; t&&clearTimeout(t); var e=arguments, s=this; this[n]=setTimeout(function(){ o.apply(s, e), delete s[n] }, i||100) }}, o.toDashed=function(t){ return t.replace(/(.)([A-Z])/g, function(t, e, i){ return e + "-" + i }).toLowerCase() }; var s=t.console; return o.htmlInit=function(i, n){ e(function(){ for (var e=o.toDashed(n), r=document.querySelectorAll(".js-" + e), a="data-" + e + "-options", l=0, d=r.length; d > l; l++){ var c, u=r[l], p=u.getAttribute(a); try { c=p&&JSON.parse(p) } catch (h){ s&&s.error("Error parsing " + a + " on " + u.nodeName.toLowerCase() + (u.id ? "#" + u.id:"") + ": " + h); continue } var f=new i(u, c), m=t.jQuery; m&&m.data(u, n, f) }}) }, o }), function(t, e){ "use strict"; "function"==typeof define&&define.amd ? define("outlayer/item", ["eventEmitter/EventEmitter", "get-size/get-size", "get-style-property/get-style-property", "fizzy-ui-utils/utils"], function(i, o, n, s){ return e(t, i, o, n, s) }):"object"==typeof exports ? module.exports=e(t, require("wolfy87-eventemitter"), require("get-size"), require("desandro-get-style-property"), require("fizzy-ui-utils")):(t.Outlayer={}, t.Outlayer.Item=e(t, t.EventEmitter, t.getSize, t.getStyleProperty, t.fizzyUIUtils)) }(window, function(t, e, i, o, n){ "use strict"; function s(t){ for (var e in t) return !1; return e=null, !0 } function r(t, e){ t&&(this.element=t, this.layout=e, this.position={ x: 0, y: 0 }, this._create()) } function a(t){ return t.replace(/([A-Z])/g, function(t){ return "-" + t.toLowerCase() }) } var l=t.getComputedStyle, d=l ? function(t){ return l(t, null) }:function(t){ return t.currentStyle }, c=o("transition"), u=o("transform"), p=c&&u, h = !!o("perspective"), f={ WebkitTransition: "webkitTransitionEnd", MozTransition: "transitionend", OTransition: "otransitionend", transition: "transitionend" }[c], m=["transform", "transition", "transitionDuration", "transitionProperty"], v=function(){ for (var t={}, e=0, i=m.length; i > e; e++){ var n=m[e], s=o(n); s&&s!==n&&(t[n]=s) } return t }(); n.extend(r.prototype, e.prototype), r.prototype._create=function(){ this._transn={ ingProperties: {}, clean: {}, onEnd: {}}, this.css({ position: "absolute" }) }, r.prototype.handleEvent=function(t){ var e="on" + t.type; this[e]&&this[e](t) }, r.prototype.getSize=function(){ this.size=i(this.element) }, r.prototype.css=function(t){ var e=this.element.style; for (var i in t){ var o=v[i]||i; e[o]=t[i] }}, r.prototype.getPosition=function(){ var t=d(this.element), e=this.layout.options, i=e.isOriginLeft, o=e.isOriginTop, n=t[i ? "left":"right"], s=t[o ? "top":"bottom"], r=this.layout.size, a=-1!=n.indexOf("%") ? parseFloat(n) / 100 * r.width:parseInt(n, 10), l=-1!=s.indexOf("%") ? parseFloat(s) / 100 * r.height:parseInt(s, 10); a=isNaN(a) ? 0:a, l=isNaN(l) ? 0:l, a -=i ? r.paddingLeft:r.paddingRight, l -=o ? r.paddingTop:r.paddingBottom, this.position.x=a, this.position.y=l }, r.prototype.layoutPosition=function(){ var t=this.layout.size, e=this.layout.options, i={}, o=e.isOriginLeft ? "paddingLeft":"paddingRight", n=e.isOriginLeft ? "left":"right", s=e.isOriginLeft ? "right":"left", r=this.position.x + t[o]; i[n]=this.getXValue(r), i[s]=""; var a=e.isOriginTop ? "paddingTop":"paddingBottom", l=e.isOriginTop ? "top":"bottom", d=e.isOriginTop ? "bottom":"top", c=this.position.y + t[a]; i[l]=this.getYValue(c), i[d]="", this.css(i), this.emitEvent("layout", [this]) }, r.prototype.getXValue=function(t){ var e=this.layout.options; return e.percentPosition&&!e.isHorizontal ? t / this.layout.size.width * 100 + "%":t + "px" }, r.prototype.getYValue=function(t){ var e=this.layout.options; return e.percentPosition&&e.isHorizontal ? t / this.layout.size.height * 100 + "%":t + "px" }, r.prototype._transitionTo=function(t, e){ this.getPosition(); var i=this.position.x, o=this.position.y, n=parseInt(t, 10), s=parseInt(e, 10), r=n===this.position.x&&s===this.position.y; if(this.setPosition(t, e), r&&!this.isTransitioning) return void this.layoutPosition(); var a=t - i, l=e - o, d={}; d.transform=this.getTranslate(a, l), this.transition({ to: d, onTransitionEnd: { transform: this.layoutPosition }, isCleaning: !0 }) }, r.prototype.getTranslate=function(t, e){ var i=this.layout.options; return t=i.isOriginLeft ? t:-t, e=i.isOriginTop ? e:-e, h ? "translate3d(" + t + "px, " + e + "px, 0)":"translate(" + t + "px, " + e + "px)" }, r.prototype.goTo=function(t, e){ this.setPosition(t, e), this.layoutPosition() }, r.prototype.moveTo=p ? r.prototype._transitionTo:r.prototype.goTo, r.prototype.setPosition=function(t, e){ this.position.x=parseInt(t, 10), this.position.y=parseInt(e, 10) }, r.prototype._nonTransition=function(t){ this.css(t.to), t.isCleaning&&this._removeStyles(t.to); for (var e in t.onTransitionEnd) t.onTransitionEnd[e].call(this) }, r.prototype._transition=function(t){ if(!parseFloat(this.layout.options.transitionDuration)) return void this._nonTransition(t); var e=this._transn; for (var i in t.onTransitionEnd) e.onEnd[i]=t.onTransitionEnd[i]; for (i in t.to) e.ingProperties[i] = !0, t.isCleaning&&(e.clean[i] = !0); if(t.from){ this.css(t.from); var o=this.element.offsetHeight; o=null } this.enableTransition(t.to), this.css(t.to), this.isTransitioning = !0 }; var g="opacity," + a(v.transform||"transform"); r.prototype.enableTransition=function(){ this.isTransitioning||(this.css({ transitionProperty: g, transitionDuration: this.layout.options.transitionDuration }), this.element.addEventListener(f, this, !1)) }, r.prototype.transition=r.prototype[c ? "_transition":"_nonTransition"], r.prototype.onwebkitTransitionEnd=function(t){ this.ontransitionend(t) }, r.prototype.onotransitionend=function(t){ this.ontransitionend(t) }; var y={ "-webkit-transform": "transform", "-moz-transform": "transform", "-o-transform": "transform" }; r.prototype.ontransitionend=function(t){ if(t.target===this.element){ var e=this._transn, i=y[t.propertyName]||t.propertyName; if(delete e.ingProperties[i], s(e.ingProperties)&&this.disableTransition(), i in e.clean&&(this.element.style[t.propertyName]="", delete e.clean[i]), i in e.onEnd){ var o=e.onEnd[i]; o.call(this), delete e.onEnd[i] } this.emitEvent("transitionEnd", [this]) }}, r.prototype.disableTransition=function(){ this.removeTransitionStyles(), this.element.removeEventListener(f, this, !1), this.isTransitioning = !1 }, r.prototype._removeStyles=function(t){ var e={}; for (var i in t) e[i]=""; this.css(e) }; var w={ transitionProperty: "", transitionDuration: "" }; return r.prototype.removeTransitionStyles=function(){ this.css(w) }, r.prototype.removeElem=function(){ this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]) }, r.prototype.remove=function(){ if(!c||!parseFloat(this.layout.options.transitionDuration)) return void this.removeElem(); var t=this; this.once("transitionEnd", function(){ t.removeElem() }), this.hide() }, r.prototype.reveal=function(){ delete this.isHidden, this.css({ display: "" }); var t=this.layout.options, e={}, i=this.getHideRevealTransitionEndProperty("visibleStyle"); e[i]=this.onRevealTransitionEnd, this.transition({ from: t.hiddenStyle, to: t.visibleStyle, isCleaning: !0, onTransitionEnd: e }) }, r.prototype.onRevealTransitionEnd=function(){ this.isHidden||this.emitEvent("reveal") }, r.prototype.getHideRevealTransitionEndProperty=function(t){ var e=this.layout.options[t]; if(e.opacity) return "opacity"; for (var i in e) return i }, r.prototype.hide=function(){ this.isHidden = !0, this.css({ display: "" }); var t=this.layout.options, e={}, i=this.getHideRevealTransitionEndProperty("hiddenStyle"); e[i]=this.onHideTransitionEnd, this.transition({ from: t.visibleStyle, to: t.hiddenStyle, isCleaning: !0, onTransitionEnd: e }) }, r.prototype.onHideTransitionEnd=function(){ this.isHidden&&(this.css({ display: "none" }), this.emitEvent("hide")) }, r.prototype.destroy=function(){ this.css({ position: "", left: "", right: "", top: "", bottom: "", transition: "", transform: "" }) }, r }), function(t, e){ "use strict"; "function"==typeof define&&define.amd ? define("outlayer/outlayer", ["eventie/eventie", "eventEmitter/EventEmitter", "get-size/get-size", "fizzy-ui-utils/utils", "./item"], function(i, o, n, s, r){ return e(t, i, o, n, s, r) }):"object"==typeof exports ? module.exports=e(t, require("eventie"), require("wolfy87-eventemitter"), require("get-size"), require("fizzy-ui-utils"), require("./item")):t.Outlayer=e(t, t.eventie, t.EventEmitter, t.getSize, t.fizzyUIUtils, t.Outlayer.Item) }(window, function(t, e, i, o, n, s){ "use strict"; function r(t, e){ var i=n.getQueryElement(t); if(!i) return void(a&&a.error("Bad element for " + this.constructor.namespace + ": " + (i||t))); this.element=i, l&&(this.$element=l(this.element)), this.options=n.extend({}, this.constructor.defaults), this.option(e); var o=++c; this.element.outlayerGUID=o, u[o]=this, this._create(), this.options.isInitLayout&&this.layout() } var a=t.console, l=t.jQuery, d=function(){}, c=0, u={}; return r.namespace="outlayer", r.Item=s, r.defaults={ containerStyle: { position: "relative" }, isInitLayout: !0, isOriginLeft: !0, isOriginTop: !0, isResizeBound: !0, isResizingContainer: !0, transitionDuration: "0.4s", hiddenStyle: { opacity: 0, transform: "scale(0.001)" }, visibleStyle: { opacity: 1, transform: "scale(1)" }}, n.extend(r.prototype, i.prototype), r.prototype.option=function(t){ n.extend(this.options, t) }, r.prototype._create=function(){ this.reloadItems(), this.stamps=[], this.stamp(this.options.stamp), n.extend(this.element.style, this.options.containerStyle), this.options.isResizeBound&&this.bindResize() }, r.prototype.reloadItems=function(){ this.items=this._itemize(this.element.children) }, r.prototype._itemize=function(t){ for (var e=this._filterFindItemElements(t), i=this.constructor.Item, o=[], n=0, s=e.length; s > n; n++){ var r=e[n], a=new i(r, this); o.push(a) } return o }, r.prototype._filterFindItemElements=function(t){ return n.filterFindElements(t, this.options.itemSelector) }, r.prototype.getItemElements=function(){ for (var t=[], e=0, i=this.items.length; i > e; e++) t.push(this.items[e].element); return t }, r.prototype.layout=function(){ this._resetLayout(), this._manageStamps(); var t=void 0!==this.options.isLayoutInstant ? this.options.isLayoutInstant:!this._isLayoutInited; this.layoutItems(this.items, t), this._isLayoutInited = !0 }, r.prototype._init=r.prototype.layout, r.prototype._resetLayout=function(){ this.getSize() }, r.prototype.getSize=function(){ this.size=o(this.element) }, r.prototype._getMeasurement=function(t, e){ var i, s=this.options[t]; s ? ("string"==typeof s ? i=this.element.querySelector(s):n.isElement(s)&&(i=s), this[t]=i ? o(i)[e]:s):this[t]=0 }, r.prototype.layoutItems=function(t, e){ t=this._getItemsForLayout(t), this._layoutItems(t, e), this._postLayout() }, r.prototype._getItemsForLayout=function(t){ for (var e=[], i=0, o=t.length; o > i; i++){ var n=t[i]; n.isIgnored||e.push(n) } return e }, r.prototype._layoutItems=function(t, e){ if(this._emitCompleteOnItems("layout", t), t&&t.length){ for (var i=[], o=0, n=t.length; n > o; o++){ var s=t[o], r=this._getItemLayoutPosition(s); r.item=s, r.isInstant=e||s.isLayoutInstant, i.push(r) } this._processLayoutQueue(i) }}, r.prototype._getItemLayoutPosition=function(){ return { x: 0, y: 0 }}, r.prototype._processLayoutQueue=function(t){ for (var e=0, i=t.length; i > e; e++){ var o=t[e]; this._positionItem(o.item, o.x, o.y, o.isInstant) }}, r.prototype._positionItem=function(t, e, i, o){ o ? t.goTo(e, i):t.moveTo(e, i) }, r.prototype._postLayout=function(){ this.resizeContainer() }, r.prototype.resizeContainer=function(){ if(this.options.isResizingContainer){ var t=this._getContainerSize(); t&&(this._setContainerMeasure(t.width, !0), this._setContainerMeasure(t.height, !1)) }}, r.prototype._getContainerSize=d, r.prototype._setContainerMeasure=function(t, e){ if(void 0!==t){ var i=this.size; i.isBorderBox&&(t +=e ? i.paddingLeft + i.paddingRight + i.borderLeftWidth + i.borderRightWidth:i.paddingBottom + i.paddingTop + i.borderTopWidth + i.borderBottomWidth), t=Math.max(t, 0), this.element.style[e ? "width":"height"]=t + "px" }}, r.prototype._emitCompleteOnItems=function(t, e){ function i(){ n.dispatchEvent(t + "Complete", null, [e]) } function o(){ r++, r===s&&i() } var n=this, s=e.length; if(!e||!s) return void i(); for (var r=0, a=0, l=e.length; l > a; a++){ var d=e[a]; d.once(t, o) }}, r.prototype.dispatchEvent=function(t, e, i){ var o=e ? [e].concat(i):i; if(this.emitEvent(t, o), l) if(this.$element=this.$element||l(this.element), e){ var n=l.Event(e); n.type=t, this.$element.trigger(n, i) } else this.$element.trigger(t, i) }, r.prototype.ignore=function(t){ var e=this.getItem(t); e&&(e.isIgnored = !0) }, r.prototype.unignore=function(t){ var e=this.getItem(t); e&&delete e.isIgnored }, r.prototype.stamp=function(t){ if(t=this._find(t)){ this.stamps=this.stamps.concat(t); for (var e=0, i=t.length; i > e; e++){ var o=t[e]; this.ignore(o) }} }, r.prototype.unstamp=function(t){ if(t=this._find(t)) for (var e=0, i=t.length; i > e; e++){ var o=t[e]; n.removeFrom(this.stamps, o), this.unignore(o) }}, r.prototype._find=function(t){ return t ? ("string"==typeof t&&(t=this.element.querySelectorAll(t)), t=n.makeArray(t)):void 0 }, r.prototype._manageStamps=function(){ if(this.stamps&&this.stamps.length){ this._getBoundingRect(); for (var t=0, e=this.stamps.length; e > t; t++){ var i=this.stamps[t]; this._manageStamp(i) }} }, r.prototype._getBoundingRect=function(){ var t=this.element.getBoundingClientRect(), e=this.size; this._boundingRect={ left: t.left + e.paddingLeft + e.borderLeftWidth, top: t.top + e.paddingTop + e.borderTopWidth, right: t.right - (e.paddingRight + e.borderRightWidth), bottom: t.bottom - (e.paddingBottom + e.borderBottomWidth) }}, r.prototype._manageStamp=d, r.prototype._getElementOffset=function(t){ var e=t.getBoundingClientRect(), i=this._boundingRect, n=o(t), s={ left: e.left - i.left - n.marginLeft, top: e.top - i.top - n.marginTop, right: i.right - e.right - n.marginRight, bottom: i.bottom - e.bottom - n.marginBottom }; return s }, r.prototype.handleEvent=function(t){ var e="on" + t.type; this[e]&&this[e](t) }, r.prototype.bindResize=function(){ this.isResizeBound||(e.bind(t, "resize", this), this.isResizeBound = !0) }, r.prototype.unbindResize=function(){ this.isResizeBound&&e.unbind(t, "resize", this), this.isResizeBound = !1 }, r.prototype.onresize=function(){ function t(){ e.resize(), delete e.resizeTimeout } this.resizeTimeout&&clearTimeout(this.resizeTimeout); var e=this; this.resizeTimeout=setTimeout(t, 100) }, r.prototype.resize=function(){ this.isResizeBound&&this.needsResizeLayout()&&this.layout() }, r.prototype.needsResizeLayout=function(){ var t=o(this.element), e=this.size&&t; return e&&t.innerWidth!==this.size.innerWidth }, r.prototype.addItems=function(t){ var e=this._itemize(t); return e.length&&(this.items=this.items.concat(e)), e }, r.prototype.appended=function(t){ var e=this.addItems(t); e.length&&(this.layoutItems(e, !0), this.reveal(e)) }, r.prototype.prepended=function(t){ var e=this._itemize(t); if(e.length){ var i=this.items.slice(0); this.items=e.concat(i), this._resetLayout(), this._manageStamps(), this.layoutItems(e, !0), this.reveal(e), this.layoutItems(i) }}, r.prototype.reveal=function(t){ this._emitCompleteOnItems("reveal", t); for (var e=t&&t.length, i=0; e&&e > i; i++){ var o=t[i]; o.reveal() }}, r.prototype.hide=function(t){ this._emitCompleteOnItems("hide", t); for (var e=t&&t.length, i=0; e&&e > i; i++){ var o=t[i]; o.hide() }}, r.prototype.revealItemElements=function(t){ var e=this.getItems(t); this.reveal(e) }, r.prototype.hideItemElements=function(t){ var e=this.getItems(t); this.hide(e) }, r.prototype.getItem=function(t){ for (var e=0, i=this.items.length; i > e; e++){ var o=this.items[e]; if(o.element===t) return o }}, r.prototype.getItems=function(t){ t=n.makeArray(t); for (var e=[], i=0, o=t.length; o > i; i++){ var s=t[i], r=this.getItem(s); r&&e.push(r) } return e }, r.prototype.remove=function(t){ var e=this.getItems(t); if(this._emitCompleteOnItems("remove", e), e&&e.length) for (var i=0, o=e.length; o > i; i++){ var s=e[i]; s.remove(), n.removeFrom(this.items, s) }}, r.prototype.destroy=function(){ var t=this.element.style; t.height="", t.position="", t.width=""; for (var e=0, i=this.items.length; i > e; e++){ var o=this.items[e]; o.destroy() } this.unbindResize(); var n=this.element.outlayerGUID; delete u[n], delete this.element.outlayerGUID, l&&l.removeData(this.element, this.constructor.namespace) }, r.data=function(t){ t=n.getQueryElement(t); var e=t&&t.outlayerGUID; return e&&u[e] }, r.create=function(t, e){ function i(){ r.apply(this, arguments) } return Object.create ? i.prototype=Object.create(r.prototype):n.extend(i.prototype, r.prototype), i.prototype.constructor=i, i.defaults=n.extend({}, r.defaults), n.extend(i.defaults, e), i.prototype.settings={}, i.namespace=t, i.data=r.data, i.Item=function(){ s.apply(this, arguments) }, i.Item.prototype=new s, n.htmlInit(i, t), l&&l.bridget&&l.bridget(t, i), i }, r.Item=s, r }), function(t, e){ "use strict"; "function"==typeof define&&define.amd ? define("isotope/js/item", ["outlayer/outlayer"], e):"object"==typeof exports ? module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{}, t.Isotope.Item=e(t.Outlayer)) }(window, function(t){ "use strict"; function e(){ t.Item.apply(this, arguments) } e.prototype=new t.Item, e.prototype._create=function(){ this.id=this.layout.itemGUID++, t.Item.prototype._create.call(this), this.sortData={}}, e.prototype.updateSortData=function(){ if(!this.isIgnored){ this.sortData.id=this.id, this.sortData["original-order"]=this.id, this.sortData.random=Math.random(); var t=this.layout.options.getSortData, e=this.layout._sorters; for (var i in t){ var o=e[i]; this.sortData[i]=o(this.element, this) }} }; var i=e.prototype.destroy; return e.prototype.destroy=function(){ i.apply(this, arguments), this.css({ display: "" }) }, e }), function(t, e){ "use strict"; "function"==typeof define&&define.amd ? define("isotope/js/layout-mode", ["get-size/get-size", "outlayer/outlayer"], e):"object"==typeof exports ? module.exports=e(require("get-size"), require("outlayer")):(t.Isotope=t.Isotope||{}, t.Isotope.LayoutMode=e(t.getSize, t.Outlayer)) }(window, function(t, e){ "use strict"; function i(t){ this.isotope=t, t&&(this.options=t.options[this.namespace], this.element=t.element, this.items=t.filteredItems, this.size=t.size) } return function(){ function t(t){ return function(){ return e.prototype[t].apply(this.isotope, arguments) }} for (var o=["_resetLayout", "_getItemLayoutPosition", "_manageStamp", "_getContainerSize", "_getElementOffset", "needsResizeLayout"], n=0, s=o.length; s > n; n++){ var r=o[n]; i.prototype[r]=t(r) }}(), i.prototype.needsVerticalResizeLayout=function(){ var e=t(this.isotope.element), i=this.isotope.size&&e; return i&&e.innerHeight!=this.isotope.size.innerHeight }, i.prototype._getMeasurement=function(){ this.isotope._getMeasurement.apply(this, arguments) }, i.prototype.getColumnWidth=function(){ this.getSegmentSize("column", "Width") }, i.prototype.getRowHeight=function(){ this.getSegmentSize("row", "Height") }, i.prototype.getSegmentSize=function(t, e){ var i=t + e, o="outer" + e; if(this._getMeasurement(i, o), !this[i]){ var n=this.getFirstItemSize(); this[i]=n&&n[o]||this.isotope.size["inner" + e] }}, i.prototype.getFirstItemSize=function(){ var e=this.isotope.filteredItems[0]; return e&&e.element&&t(e.element) }, i.prototype.layout=function(){ this.isotope.layout.apply(this.isotope, arguments) }, i.prototype.getSize=function(){ this.isotope.getSize(), this.size=this.isotope.size }, i.modes={}, i.create=function(t, e){ function o(){ i.apply(this, arguments) } return o.prototype=new i, e&&(o.options=e), o.prototype.namespace=t, i.modes[t]=o, o }, i }), function(t, e){ "use strict"; "function"==typeof define&&define.amd ? define("masonry/masonry", ["outlayer/outlayer", "get-size/get-size", "fizzy-ui-utils/utils"], e):"object"==typeof exports ? module.exports=e(require("outlayer"), require("get-size"), require("fizzy-ui-utils")):t.Masonry=e(t.Outlayer, t.getSize, t.fizzyUIUtils) }(window, function(t, e, i){ var o=t.create("masonry"); return o.prototype._resetLayout=function(){ this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(); var t=this.cols; for (this.colYs=[]; t--;) this.colYs.push(0); this.maxY=0 }, o.prototype.measureColumns=function(){ if(this.getContainerWidth(), !this.columnWidth){ var t=this.items[0], i=t&&t.element; this.columnWidth=i&&e(i).outerWidth||this.containerWidth } var o=this.columnWidth +=this.gutter, n=this.containerWidth + this.gutter, s=n / o, r=o - n % o, a=r&&1 > r ? "round":"floor"; s=Math[a](s), this.cols=Math.max(s, 1) }, o.prototype.getContainerWidth=function(){ var t=this.options.isFitWidth ? this.element.parentNode:this.element, i=e(t); this.containerWidth=i&&i.innerWidth }, o.prototype._getItemLayoutPosition=function(t){ t.getSize(); var e=t.size.outerWidth % this.columnWidth, o=e&&1 > e ? "round":"ceil", n=Math[o](t.size.outerWidth / this.columnWidth); n=Math.min(n, this.cols); for (var s=this._getColGroup(n), r=Math.min.apply(Math, s), a=i.indexOf(s, r), l={ x: this.columnWidth * a, y: r }, d=r + t.size.outerHeight, c=this.cols + 1 - s.length, u=0; c > u; u++) this.colYs[a + u]=d; return l }, o.prototype._getColGroup=function(t){ if(2 > t) return this.colYs; for (var e=[], i=this.cols + 1 - t, o=0; i > o; o++){ var n=this.colYs.slice(o, o + t); e[o]=Math.max.apply(Math, n) } return e }, o.prototype._manageStamp=function(t){ var i=e(t), o=this._getElementOffset(t), n=this.options.isOriginLeft ? o.left:o.right, s=n + i.outerWidth, r=Math.floor(n / this.columnWidth); r=Math.max(0, r); var a=Math.floor(s / this.columnWidth); a -=s % this.columnWidth ? 0:1, a=Math.min(this.cols - 1, a); for (var l=(this.options.isOriginTop ? o.top:o.bottom) + i.outerHeight, d=r; a >=d; d++) this.colYs[d]=Math.max(l, this.colYs[d]) }, o.prototype._getContainerSize=function(){ this.maxY=Math.max.apply(Math, this.colYs); var t={ height: this.maxY }; return this.options.isFitWidth&&(t.width=this._getContainerFitWidth()), t }, o.prototype._getContainerFitWidth=function(){ for (var t=0, e=this.cols; --e&&0===this.colYs[e];) t++; return (this.cols - t) * this.columnWidth - this.gutter }, o.prototype.needsResizeLayout=function(){ var t=this.containerWidth; return this.getContainerWidth(), t!==this.containerWidth }, o }), function(t, e){ "use strict"; "function"==typeof define&&define.amd ? define("isotope/js/layout-modes/masonry", ["../layout-mode", "masonry/masonry"], e):"object"==typeof exports ? module.exports=e(require("../layout-mode"), require("masonry-layout")):e(t.Isotope.LayoutMode, t.Masonry) }(window, function(t, e){ "use strict"; function i(t, e){ for (var i in e) t[i]=e[i]; return t } var o=t.create("masonry"), n=o.prototype._getElementOffset, s=o.prototype.layout, r=o.prototype._getMeasurement; i(o.prototype, e.prototype), o.prototype._getElementOffset=n, o.prototype.layout=s, o.prototype._getMeasurement=r; var a=o.prototype.measureColumns; o.prototype.measureColumns=function(){ this.items=this.isotope.filteredItems, a.call(this) }; var l=o.prototype._manageStamp; return o.prototype._manageStamp=function(){ this.options.isOriginLeft=this.isotope.options.isOriginLeft, this.options.isOriginTop=this.isotope.options.isOriginTop, l.apply(this, arguments) }, o }), function(t, e){ "use strict"; "function"==typeof define&&define.amd ? define("isotope/js/layout-modes/fit-rows", ["../layout-mode"], e):"object"==typeof exports ? module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode) }(window, function(t){ "use strict"; var e=t.create("fitRows"); return e.prototype._resetLayout=function(){ this.x=0, this.y=0, this.maxY=0, this._getMeasurement("gutter", "outerWidth") }, e.prototype._getItemLayoutPosition=function(t){ t.getSize(); var e=t.size.outerWidth + this.gutter, i=this.isotope.size.innerWidth + this.gutter; 0!==this.x&&e + this.x > i&&(this.x=0, this.y=this.maxY); var o={ x: this.x, y: this.y }; return this.maxY=Math.max(this.maxY, this.y + t.size.outerHeight), this.x +=e, o }, e.prototype._getContainerSize=function(){ return { height: this.maxY }}, e }), function(t, e){ "use strict"; "function"==typeof define&&define.amd ? define("isotope/js/layout-modes/vertical", ["../layout-mode"], e):"object"==typeof exports ? module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode) }(window, function(t){ "use strict"; var e=t.create("vertical", { horizontalAlignment: 0 }); return e.prototype._resetLayout=function(){ this.y=0 }, e.prototype._getItemLayoutPosition=function(t){ t.getSize(); var e=(this.isotope.size.innerWidth - t.size.outerWidth) * this.options.horizontalAlignment, i=this.y; return this.y +=t.size.outerHeight, { x: e, y: i }}, e.prototype._getContainerSize=function(){ return { height: this.y }}, e }), function(t, e){ "use strict"; "function"==typeof define&&define.amd ? define(["outlayer/outlayer", "get-size/get-size", "matches-selector/matches-selector", "fizzy-ui-utils/utils", "isotope/js/item", "isotope/js/layout-mode", "isotope/js/layout-modes/masonry", "isotope/js/layout-modes/fit-rows", "isotope/js/layout-modes/vertical"], function(i, o, n, s, r, a){ return e(t, i, o, n, s, r, a) }):"object"==typeof exports ? module.exports=e(t, require("outlayer"), require("get-size"), require("desandro-matches-selector"), require("fizzy-ui-utils"), require("./item"), require("./layout-mode"), require("./layout-modes/masonry"), require("./layout-modes/fit-rows"), require("./layout-modes/vertical")):t.Isotope=e(t, t.Outlayer, t.getSize, t.matchesSelector, t.fizzyUIUtils, t.Isotope.Item, t.Isotope.LayoutMode) }(window, function(t, e, i, o, n, s, r){ function a(t, e){ return function(i, o){ for (var n=0, s=t.length; s > n; n++){ var r=t[n], a=i.sortData[r], l=o.sortData[r]; if(a > l||l > a){ var d=void 0!==e[r] ? e[r]:e, c=d ? 1:-1; return (a > l ? 1:-1) * c }} return 0 }} var l=t.jQuery, d=String.prototype.trim ? function(t){ return t.trim() }:function(t){ return t.replace(/^\s+|\s+$/g, "") }, c=document.documentElement, u=c.textContent ? function(t){ return t.textContent }:function(t){ return t.innerText }, p=e.create("isotope", { layoutMode: "masonry", isJQueryFiltering: !0, sortAscending: !0 }); p.Item=s, p.LayoutMode=r, p.prototype._create=function(){ this.itemGUID=0, this._sorters={}, this._getSorters(), e.prototype._create.call(this), this.modes={}, this.filteredItems=this.items, this.sortHistory=["original-order"]; for (var t in r.modes) this._initLayoutMode(t) }, p.prototype.reloadItems=function(){ this.itemGUID=0, e.prototype.reloadItems.call(this) }, p.prototype._itemize=function(){ for (var t=e.prototype._itemize.apply(this, arguments), i=0, o=t.length; o > i; i++){ var n=t[i]; n.id=this.itemGUID++ } return this._updateItemsSortData(t), t }, p.prototype._initLayoutMode=function(t){ var e=r.modes[t], i=this.options[t]||{}; this.options[t]=e.options ? n.extend(e.options, i):i, this.modes[t]=new e(this) }, p.prototype.layout=function(){ return !this._isLayoutInited&&this.options.isInitLayout ? void this.arrange():void this._layout() }, p.prototype._layout=function(){ var t=this._getIsInstant(); this._resetLayout(), this._manageStamps(), this.layoutItems(this.filteredItems, t), this._isLayoutInited = !0 }, p.prototype.arrange=function(t){ function e(){ o.reveal(i.needReveal), o.hide(i.needHide) } this.option(t), this._getIsInstant(); var i=this._filter(this.items); this.filteredItems=i.matches; var o=this; this._bindArrangeComplete(), this._isInstant ? this._noTransition(e):e(), this._sort(), this._layout() }, p.prototype._init=p.prototype.arrange, p.prototype._getIsInstant=function(){ var t=void 0!==this.options.isLayoutInstant ? this.options.isLayoutInstant:!this._isLayoutInited; return this._isInstant=t, t }, p.prototype._bindArrangeComplete=function(){ function t(){ e&&i && o&&n.dispatchEvent("arrangeComplete", null, [n.filteredItems]) } var e, i, o, n=this; this.once("layoutComplete", function(){ e = !0, t() }), this.once("hideComplete", function(){ i = !0, t() }), this.once("revealComplete", function(){ o = !0, t() }) }, p.prototype._filter=function(t){ var e=this.options.filter; e=e||"*"; for (var i=[], o=[], n=[], s=this._getFilterTest(e), r=0, a=t.length; a > r; r++){ var l=t[r]; if(!l.isIgnored){ var d=s(l); d&&i.push(l), d&&l.isHidden ? o.push(l):d||l.isHidden||n.push(l) }} return { matches: i, needReveal: o, needHide: n }}, p.prototype._getFilterTest=function(t){ return l&&this.options.isJQueryFiltering ? function(e){ return l(e.element).is(t) }:"function"==typeof t ? function(e){ return t(e.element) }:function(e){ return o(e.element, t) }}, p.prototype.updateSortData=function(t){ var e; t ? (t=n.makeArray(t), e=this.getItems(t)):e=this.items, this._getSorters(), this._updateItemsSortData(e) }, p.prototype._getSorters=function(){ var t=this.options.getSortData; for (var e in t){ var i=t[e]; this._sorters[e]=h(i) }}, p.prototype._updateItemsSortData=function(t){ for (var e=t&&t.length, i=0; e&&e > i; i++){ var o=t[i]; o.updateSortData() }}; var h=function(){ function t(t){ if("string"!=typeof t) return t; var i=d(t).split(" "), o=i[0], n=o.match(/^\[(.+)\]$/), s=n&&n[1], r=e(s, o), a=p.sortDataParsers[i[1]]; return t=a ? function(t){ return t&&a(r(t)) }:function(t){ return t&&r(t) }} function e(t, e){ var i; return i=t ? function(e){ return e.getAttribute(t) }:function(t){ var i=t.querySelector(e); return i&&u(i) }} return t }(); p.sortDataParsers={ parseInt: function(t){ return parseInt(t, 10) }, parseFloat: function(t){ return parseFloat(t) }}, p.prototype._sort=function(){ var t=this.options.sortBy; if(t){ var e=[].concat.apply(t, this.sortHistory), i=a(e, this.options.sortAscending); this.filteredItems.sort(i), t!=this.sortHistory[0]&&this.sortHistory.unshift(t); }}, p.prototype._mode=function(){ var t=this.options.layoutMode, e=this.modes[t]; if(!e) throw new Error("No layout mode: " + t); return e.options=this.options[t], e }, p.prototype._resetLayout=function(){ e.prototype._resetLayout.call(this), this._mode()._resetLayout() }, p.prototype._getItemLayoutPosition=function(t){ return this._mode()._getItemLayoutPosition(t) }, p.prototype._manageStamp=function(t){ this._mode()._manageStamp(t) }, p.prototype._getContainerSize=function(){ return this._mode()._getContainerSize() }, p.prototype.needsResizeLayout=function(){ return this._mode().needsResizeLayout() }, p.prototype.appended=function(t){ var e=this.addItems(t); if(e.length){ var i=this._filterRevealAdded(e); this.filteredItems=this.filteredItems.concat(i) }}, p.prototype.prepended=function(t){ var e=this._itemize(t); if(e.length){ this._resetLayout(), this._manageStamps(); var i=this._filterRevealAdded(e); this.layoutItems(this.filteredItems), this.filteredItems=i.concat(this.filteredItems), this.items=e.concat(this.items) }}, p.prototype._filterRevealAdded=function(t){ var e=this._filter(t); return this.hide(e.needHide), this.reveal(e.matches), this.layoutItems(e.matches, !0), e.matches }, p.prototype.insert=function(t){ var e=this.addItems(t); if(e.length){ var i, o, n=e.length; for (i=0; n > i; i++) o=e[i], this.element.appendChild(o.element); var s=this._filter(e).matches; for (i=0; n > i; i++) e[i].isLayoutInstant = !0; for (this.arrange(), i=0; n > i; i++) delete e[i].isLayoutInstant; this.reveal(s) }}; var f=p.prototype.remove; return p.prototype.remove=function(t){ t=n.makeArray(t); var e=this.getItems(t); f.call(this, t); var i=e&&e.length; if(i) for (var o=0; i > o; o++){ var s=e[o]; n.removeFrom(this.filteredItems, s) }}, p.prototype.shuffle=function(){ for (var t=0, e=this.items.length; e > t; t++){ var i=this.items[t]; i.sortData.random=Math.random() } this.options.sortBy="random", this._sort(), this._layout() }, p.prototype._noTransition=function(t){ var e=this.options.transitionDuration; this.options.transitionDuration=0; var i=t.call(this); return this.options.transitionDuration=e, i }, p.prototype.getFilteredItemElements=function(){ for (var t=[], e=0, i=this.filteredItems.length; i > e; e++) t.push(this.filteredItems[e].element); return t }, p }), jQuery(document).ready(function(t){ t(window).scroll(function(){ t(window).width() > 768&&window.requestAnimationFrame(scrollHandler), window.requestAnimationFrame(howWeRollScrollHandler) }) }); !function($){"use strict";function initQodeLike(){$(document).on("click",".qode-like",function(){var likeLink=$(this),id=$(this).attr("id");if(likeLink.hasClass("liked"))return!1;var type="";"undefined"!=typeof likeLink.data("type")&&(type=likeLink.data("type"));var $dataToPass={action:"qode_like",likes_id:id,type:type};return $.ajax({method:"POST",url:qodeLike.ajaxurl,data:$dataToPass,success:function(data){likeLink.html(data).addClass("liked").attr("title","You already like this!"),likeLink.find("span").css("opacity",1)}}),!1})}$(document).ready(function($){initQodeLike()})}(jQuery); !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(b,d){var e,f,g,h=b.nodeName.toLowerCase();return"area"===h?(e=b.parentNode,f=e.name,!(!b.href||!f||"map"!==e.nodeName.toLowerCase())&&(g=a("img[usemap='#"+f+"']")[0],!!g&&c(g))):(/^(input|select|textarea|button|object)$/.test(h)?!b.disabled:"a"===h?b.href||d:d)&&c(b)}function c(b){return a.expr.filters.visible(b)&&!a(b).parents().addBack().filter(function(){return"hidden"===a.css(this,"visibility")}).length}a.ui=a.ui||{},a.extend(a.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),a.fn.extend({scrollParent:function(b){var c=this.css("position"),d="absolute"===c,e=b?/(auto|scroll|hidden)/:/(auto|scroll)/,f=this.parents().filter(function(){var b=a(this);return(!d||"static"!==b.css("position"))&&e.test(b.css("overflow")+b.css("overflow-y")+b.css("overflow-x"))}).eq(0);return"fixed"!==c&&f.length?f:a(this[0].ownerDocument||document)},uniqueId:function(){var a=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++a)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&a(this).removeAttr("id")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},focusable:function(c){return b(c,!isNaN(a.attr(c,"tabindex")))},tabbable:function(c){var d=a.attr(c,"tabindex"),e=isNaN(d);return(e||d>=0)&&b(c,!e)}}),a("").outerWidth(1).jquery||a.each(["Width","Height"],function(b,c){function d(b,c,d,f){return a.each(e,function(){c-=parseFloat(a.css(b,"padding"+this))||0,d&&(c-=parseFloat(a.css(b,"border"+this+"Width"))||0),f&&(c-=parseFloat(a.css(b,"margin"+this))||0)}),c}var e="Width"===c?["Left","Right"]:["Top","Bottom"],f=c.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+c]=function(b){return void 0===b?g["inner"+c].call(this):this.each(function(){a(this).css(f,d(this,b)+"px")})},a.fn["outer"+c]=function(b,e){return"number"!=typeof b?g["outer"+c].call(this,b):this.each(function(){a(this).css(f,d(this,b,!0,e)+"px")})}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a("").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=function(b){return function(c){return arguments.length?b.call(this,a.camelCase(c)):b.call(this)}}(a.fn.removeData)),a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),a.fn.extend({focus:function(b){return function(c,d){return"number"==typeof c?this.each(function(){var b=this;setTimeout(function(){a(b).focus(),d&&d.call(b)},c)}):b.apply(this,arguments)}}(a.fn.focus),disableSelection:function(){var a="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(a+".ui-disableSelection",function(a){a.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(b){if(void 0!==b)return this.css("zIndex",b);if(this.length)for(var c,d,e=a(this[0]);e.length&&e[0]!==document;){if(c=e.css("position"),("absolute"===c||"relative"===c||"fixed"===c)&&(d=parseInt(e.css("zIndex"),10),!isNaN(d)&&0!==d))return d;e=e.parent()}return 0}}),a.ui.plugin={add:function(b,c,d){var e,f=a.ui[b].prototype;for(e in d)f.plugins[e]=f.plugins[e]||[],f.plugins[e].push([c,d[e]])},call:function(a,b,c,d){var e,f=a.plugins[b];if(f&&(d||a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType))for(e=0;e",options:{disabled:!1,create:null},_createWidget:function(c,d){d=a(d||this.defaultElement||this)[0],this.element=a(d),this.uuid=b++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=a(),this.hoverable=a(),this.focusable=a(),d!==this&&(a.data(d,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===d&&this.destroy()}}),this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow)),this.options=a.widget.extend({},this.options,this._getCreateOptions(),c),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(a.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:a.noop,widget:function(){return this.element},option:function(b,c){var d,e,f,g=b;if(0===arguments.length)return a.widget.extend({},this.options);if("string"==typeof b)if(g={},d=b.split("."),b=d.shift(),d.length){for(e=g[b]=a.widget.extend({},this.options[b]),f=0;f li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var b=this.options;this.prevShow=this.prevHide=a(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),b.collapsible||b.active!==!1&&null!=b.active||(b.active=0),this._processPanels(),b.active<0&&(b.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():a()}},_createIcons:function(){var b=this.options.icons;b&&(a("").addClass("ui-accordion-header-icon ui-icon "+b.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(b.header).addClass(b.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var a;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),a=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&a.css("height","")},_setOption:function(a,b){return"active"===a?void this._activate(b):("event"===a&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(b)),this._super(a,b),"collapsible"!==a||b||this.options.active!==!1||this._activate(0),"icons"===a&&(this._destroyIcons(),b&&this._createIcons()),void("disabled"===a&&(this.element.toggleClass("ui-state-disabled",!!b).attr("aria-disabled",b),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!b))))},_keydown:function(b){if(!b.altKey&&!b.ctrlKey){var c=a.ui.keyCode,d=this.headers.length,e=this.headers.index(b.target),f=!1;switch(b.keyCode){case c.RIGHT:case c.DOWN:f=this.headers[(e+1)%d];break;case c.LEFT:case c.UP:f=this.headers[(e-1+d)%d];break;case c.SPACE:case c.ENTER:this._eventHandler(b);break;case c.HOME:f=this.headers[0];break;case c.END:f=this.headers[d-1]}f&&(a(b.target).attr("tabIndex",-1),a(f).attr("tabIndex",0),f.focus(),b.preventDefault())}},_panelKeyDown:function(b){b.keyCode===a.ui.keyCode.UP&&b.ctrlKey&&a(b.currentTarget).prev().focus()},refresh:function(){var b=this.options;this._processPanels(),b.active===!1&&b.collapsible===!0||!this.headers.length?(b.active=!1,this.active=a()):b.active===!1?this._activate(0):this.active.length&&!a.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(b.active=!1,this.active=a()):this._activate(Math.max(0,b.active-1)):b.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var a=this.headers,b=this.panels;this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.panels=this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide(),b&&(this._off(a.not(this.headers)),this._off(b.not(this.panels)))},_refresh:function(){var b,c=this.options,d=c.heightStyle,e=this.element.parent();this.active=this._findActive(c.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(){var b=a(this),c=b.uniqueId().attr("id"),d=b.next(),e=d.uniqueId().attr("id");b.attr("aria-controls",e),d.attr("aria-labelledby",c)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(c.event),"fill"===d?(b=e.height(),this.element.siblings(":visible").each(function(){var c=a(this),d=c.css("position");"absolute"!==d&&"fixed"!==d&&(b-=c.outerHeight(!0))}),this.headers.each(function(){b-=a(this).outerHeight(!0)}),this.headers.next().each(function(){a(this).height(Math.max(0,b-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===d&&(b=0,this.headers.next().each(function(){b=Math.max(b,a(this).css("height","").height())}).height(b))},_activate:function(b){var c=this._findActive(b)[0];c!==this.active[0]&&(c=c||this.active[0],this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop}))},_findActive:function(b){return"number"==typeof b?this.headers.eq(b):a()},_setupEvents:function(b){var c={keydown:"_keydown"};b&&a.each(b.split(" "),function(a,b){c[b]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,c),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(b){var c=this.options,d=this.active,e=a(b.currentTarget),f=e[0]===d[0],g=f&&c.collapsible,h=g?a():e.next(),i=d.next(),j={oldHeader:d,oldPanel:i,newHeader:g?a():e,newPanel:h};b.preventDefault(),f&&!c.collapsible||this._trigger("beforeActivate",b,j)===!1||(c.active=!g&&this.headers.index(e),this.active=f?a():e,this._toggle(j),d.removeClass("ui-accordion-header-active ui-state-active"),c.icons&&d.children(".ui-accordion-header-icon").removeClass(c.icons.activeHeader).addClass(c.icons.header),f||(e.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),c.icons&&e.children(".ui-accordion-header-icon").removeClass(c.icons.header).addClass(c.icons.activeHeader),e.next().addClass("ui-accordion-content-active")))},_toggle:function(b){var c=b.newPanel,d=this.prevShow.length?this.prevShow:b.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=c,this.prevHide=d,this.options.animate?this._animate(c,d,b):(d.hide(),c.show(),this._toggleComplete(b)),d.attr({"aria-hidden":"true"}),d.prev().attr({"aria-selected":"false","aria-expanded":"false"}),c.length&&d.length?d.prev().attr({tabIndex:-1,"aria-expanded":"false"}):c.length&&this.headers.filter(function(){return 0===parseInt(a(this).attr("tabIndex"),10)}).attr("tabIndex",-1),c.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(a,b,c){var d,e,f,g=this,h=0,i=a.css("box-sizing"),j=a.length&&(!b.length||a.index()
"),f=d.children()[0];return a("body").append(d),b=f.offsetWidth,d.css("overflow","scroll"),c=f.offsetWidth,b===c&&(c=d[0].clientWidth),d.remove(),e=b-c},getScrollInfo:function(b){var c=b.isWindow||b.isDocument?"":b.element.css("overflow-x"),d=b.isWindow||b.isDocument?"":b.element.css("overflow-y"),e="scroll"===c||"auto"===c&&b.width0?"right":"center",vertical:f<0?"top":d>0?"bottom":"middle"};pg(h(d),h(f))?i.important="horizontal":i.important="vertical",e.using.call(this,a,i)}),k.offset(a.extend(B,{using:j}))})},a.ui.position={fit:{left:function(a,b){var c,d=b.within,e=d.isWindow?d.scrollLeft:d.offset.left,f=d.width,h=a.left-b.collisionPosition.marginLeft,i=e-h,j=h+b.collisionWidth-f-e;b.collisionWidth>f?i>0&&j<=0?(c=a.left+i+b.collisionWidth-f-e,a.left+=i-c):j>0&&i<=0?a.left=e:i>j?a.left=e+f-b.collisionWidth:a.left=e:i>0?a.left+=i:j>0?a.left-=j:a.left=g(a.left-h,a.left)},top:function(a,b){var c,d=b.within,e=d.isWindow?d.scrollTop:d.offset.top,f=b.within.height,h=a.top-b.collisionPosition.marginTop,i=e-h,j=h+b.collisionHeight-f-e;b.collisionHeight>f?i>0&&j<=0?(c=a.top+i+b.collisionHeight-f-e,a.top+=i-c):j>0&&i<=0?a.top=e:i>j?a.top=e+f-b.collisionHeight:a.top=e:i>0?a.top+=i:j>0?a.top-=j:a.top=g(a.top-h,a.top)}},flip:{left:function(a,b){var c,d,e=b.within,f=e.offset.left+e.scrollLeft,g=e.width,i=e.isWindow?e.scrollLeft:e.offset.left,j=a.left-b.collisionPosition.marginLeft,k=j-i,l=j+b.collisionWidth-g-i,m="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,n="left"===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,o=-2*b.offset[0];k<0?(c=a.left+m+n+o+b.collisionWidth-g-f,(c<0||c0&&(d=a.left-b.collisionPosition.marginLeft+m+n+o-i,(d>0||h(d)0&&(c=a.top-b.collisionPosition.marginTop+n+o+p-i,(c>0||h(c)10&&e<11,b.innerHTML="",c.removeChild(b)}()}(),a.ui.position}); !function(a){"function"==typeof define&&define.amd?define(["jquery","./core","./widget","./position"],a):a(jQuery)}(function(a){return a.widget("ui.menu",{version:"1.11.4",defaultElement:"
",{"class":"select2-results__options select2-results__options--nested"});m.append(i),g.append(h),g.append(m)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b,c){var d=this,e=b.id+"-results";this.$results.attr("id",e),b.on("results:all",function(a){d.clear(),d.append(a.data),b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("results:append",function(a){d.append(a.data),b.isOpen()&&d.setClasses()}),b.on("query",function(a){d.hideMessages(),d.showLoading(a)}),b.on("select",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("unselect",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("open",function(){d.$results.attr("aria-expanded","true"),d.$results.attr("aria-hidden","false"),d.setClasses(),d.ensureHighlightVisible()}),b.on("close",function(){d.$results.attr("aria-expanded","false"),d.$results.attr("aria-hidden","true"),d.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=d.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=d.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("aria-selected")?d.trigger("close",{}):d.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a);if(0!==c){var e=c-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top,h=f.offset().top,i=d.$results.scrollTop()+(h-g);0===e?d.$results.scrollTop(0):0>h-g&&d.$results.scrollTop(i)}}),b.on("results:next",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a),e=c+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top+d.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=d.$results.scrollTop()+h-g;0===e?d.$results.scrollTop(0):h>g&&d.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),b.on("results:message",function(a){d.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=d.$results.scrollTop(),c=d.$results.get(0).scrollHeight-b+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&c<=d.$results.height();e?(d.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(d.$results.scrollTop(d.$results.get(0).scrollHeight-d.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(b){var c=a(this),e=c.data("data");return"true"===c.attr("aria-selected")?void(d.options.get("multiple")?d.trigger("unselect",{originalEvent:b,data:e}):d.trigger("close",{})):void d.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(b){var c=a(this).data("data");d.getHighlightedResults().removeClass("select2-results__option--highlighted"),d.trigger("results:focus",{data:c,element:a(this)})})},c.prototype.getHighlightedResults=function(){var a=this.$results.find(".select2-results__option--highlighted");return a},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),2>=c?this.$results.scrollTop(0):(g>this.$results.outerHeight()||0>g)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b,c);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){var a={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return a}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a,b){var d=this,e=(a.id+"-container",a.id+"-results");this.container=a,this.$selection.on("focus",function(a){d.trigger("focus",a)}),this.$selection.on("blur",function(a){d._handleBlur(a)}),this.$selection.on("keydown",function(a){d.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){d.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){d.update(a.data)}),a.on("open",function(){d.$selection.attr("aria-expanded","true"),d.$selection.attr("aria-owns",e),d._attachCloseHandler(a)}),a.on("close",function(){d.$selection.attr("aria-expanded","false"),d.$selection.removeAttr("aria-activedescendant"),d.$selection.removeAttr("aria-owns"),d.$selection.focus(),d._detachCloseHandler(a)}),a.on("enable",function(){d.$selection.attr("tabindex",d._tabindex)}),a.on("disable",function(){d.$selection.attr("tabindex","-1")})},d.prototype._handleBlur=function(b){var c=this;window.setTimeout(function(){document.activeElement==c.$selection[0]||a.contains(c.$selection[0],document.activeElement)||c.trigger("blur",b)},1)},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.select2."+b.id,function(b){var c=a(b.target),d=c.closest(".select2"),e=a(".select2.select2-container--open");e.each(function(){var b=a(this);if(this!=d[0]){var c=b.data("element");c.select2("close")}})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){var c=b.find(".selection");c.append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(a){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c,d){function e(){e.__super__.constructor.apply(this,arguments)}return c.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html(''),a},e.prototype.bind=function(a,b){var c=this;e.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d),this.$selection.attr("aria-labelledby",d),this.$selection.on("mousedown",function(a){1===a.which&&c.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("blur",function(a){}),a.on("focus",function(b){a.isOpen()||c.$selection.focus()}),a.on("selection:update",function(a){c.update(a.data)})},e.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},e.prototype.display=function(a,b){var c=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(c(a,b))},e.prototype.selectionContainer=function(){return a("")},e.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d),c.prop("title",b.title||b.text)},e}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(a,b){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('
    '),a},d.prototype.bind=function(b,c){var e=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){e.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){if(!e.options.get("disabled")){var c=a(this),d=c.parent(),f=d.data("data");e.trigger("unselect",{originalEvent:b,data:f})}})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a,b){var c=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(c(a,b))},d.prototype.selectionContainer=function(){var b=a('
  • ×
  • ');return b},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d1;if(d||c)return a.call(this,b);this.clear();var e=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(e)},b}),b.define("select2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".select2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e0||0===c.length)){var d=a('×');d.data("data",c),this.$selection.find(".select2-selection__rendered").prepend(d)}},c}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return this._transferTabIndex(),d},d.prototype.bind=function(a,b,d){var e=this;a.call(this,b,d),b.on("open",function(){e.$search.trigger("focus")}),b.on("close",function(){e.$search.val(""),e.$search.removeAttr("aria-activedescendant"),e.$search.trigger("focus")}),b.on("enable",function(){e.$search.prop("disabled",!1),e._transferTabIndex()}),b.on("disable",function(){e.$search.prop("disabled",!0)}),b.on("focus",function(a){e.$search.trigger("focus")}),b.on("results:focus",function(a){e.$search.attr("aria-activedescendant",a.id)}),this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){e._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented();var b=a.which;if(b===c.BACKSPACE&&""===e.$search.val()){var d=e.$searchContainer.prev(".select2-selection__choice");if(d.length>0){var f=d.data("data");e.searchRemoveChoice(f),a.preventDefault()}}});var f=document.documentMode,g=f&&11>=f;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){return g?void e.$selection.off("input.search input.searchcheck"):void e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(g&&"input"===a.type)return void e.$selection.off("input.search input.searchcheck");var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&e.handleSearch(a)})},d.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){var c=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),c&&this.$search.focus()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.$search.val(b.text),this.handleSearch()},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{var b=this.$search.val().length+1;a=.75*b+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){var a={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return a}),b.define("select2/data/base",["../utils"],function(a){function b(a,c){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(a,b){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),d+=null!=c.id?"-"+c.id.toString():"-"+a.generateChars(4)},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change"); if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){d.status&&"0"===d.status||e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&null!=a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h0&&b.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;return d.maximumSelectionLength>0&&f>=d.maximumSelectionLength?void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}}):void a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a,b){function c(){}return c.prototype.render=function(b){var c=b.call(this),d=a('');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},c.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(b){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val("")}),c.on("focus",function(){c.isOpen()&&e.$search.focus()}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){var b=e.showSearch(a);b?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}})},c.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.showSearch=function(a,b){return!0},c}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){var c=e.$results.offset().top+e.$results.outerHeight(!1),d=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1);c+50>=d&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('
  • '),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=d.get("dropdownParent")||a(document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.destroy=function(a){a.call(this),this.$dropdownContainer.remove()},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a(""),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c,d){var e=this,f="scroll.select2."+d.id,g="resize.select2."+d.id,h="orientationchange.select2."+d.id,i=this.$container.parents().filter(b.hasScroll);i.each(function(){a(this).data("select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(b){var c=a(this).data("select2-scroll-position");a(this).scrollTop(c.y)}),a(window).on(f+" "+g+" "+h,function(a){e._positionDropdown(),e._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c,d){var e="scroll.select2."+d.id,f="resize.select2."+d.id,g="orientationchange.select2."+d.id,h=this.$container.parents().filter(b.hasScroll);h.off(e),a(window).off(e+" "+f+" "+g)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.topf.bottom+h.height,l={left:f.left,top:g.bottom},m=this.$dropdownParent;"static"===m.css("position")&&(m=m.offsetParent());var n=m.offset();l.top-=n.top,l.left-=n.left,c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-n.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.position="relative",a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),(null!=l.tokenSeparators||null!=l.tokenizer)&&(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.multiple?l.selectionAdapter=e:l.selectionAdapter=d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){var h=e.children[g],i=c(d,h);null==i&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var j=b(e.text).toUpperCase(),k=b(d.term).toUpperCase();return j.indexOf(k)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)};var E=new D;return E}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),a.data("data",a.data("select2Tags")),a.data("tags",!0)),a.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b=b.replace(/(:|\.|\[|\]|,)/g,""),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return 0>=e?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;i>h;h+=1){var j=g[h].replace(/\s/g,""),k=j.match(c);if(null!==k&&k.length>=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this.$element.on("focus.select2",function(a){b.trigger("focus",a)}),this._syncA=c.bind(this._syncAttributes,this),this._syncS=c.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._syncA),a.each(c,b._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",b._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",b._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",b._syncS,!1))},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle","focus"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("focus",function(a){b.focus(a)}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("blur",function(){a.$container.removeClass("select2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open",{}),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ESC||c===d.TAB||c===d.UP&&b.altKey?(a.close(),b.preventDefault()):c===d.ENTER?(a.trigger("results:select",{}),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle",{}),b.preventDefault()):c===d.UP?(a.trigger("results:previous",{}),b.preventDefault()):c===d.DOWN&&(a.trigger("results:next",{}),b.preventDefault()):(c===d.ENTER||c===d.SPACE||c===d.DOWN&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},e.prototype._syncSubtree=function(a,b){var c=!1,d=this;if(!a||!a.target||"OPTION"===a.target.nodeName||"OPTGROUP"===a.target.nodeName){if(b)if(b.addedNodes&&b.addedNodes.length>0)for(var e=0;e0&&(c=!0);else c=!0;c&&this.dataAdapter.current(function(a){d.trigger("selection:update",{data:a})})}},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===b&&(b={}),a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.trigger("query",{})},e.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},e.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==a||0===a.length)&&(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null; },e.prototype.render=function(){var b=a('');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("select2/compat/utils",["jquery"],function(a){function b(b,c,d){var e,f,g=[];e=a.trim(b.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each(function(){0===this.indexOf("select2-")&&g.push(this)})),e=a.trim(c.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&(f=d(this),null!=f&&g.push(f))})),b.attr("class",g.join(" "))}return{syncCssClasses:b}}),b.define("select2/compat/containerCss",["jquery","./utils"],function(a,b){function c(a){return null}function d(){}return d.prototype.render=function(d){var e=d.call(this),f=this.options.get("containerCssClass")||"";a.isFunction(f)&&(f=f(this.$element));var g=this.options.get("adaptContainerCssClass");if(g=g||c,-1!==f.indexOf(":all:")){f=f.replace(":all:","");var h=g;g=function(a){var b=h(a);return null!=b?b+" "+a:a}}var i=this.options.get("containerCss")||{};return a.isFunction(i)&&(i=i(this.$element)),b.syncCssClasses(e,this.$element,g),e.css(i),e.addClass(f),e},d}),b.define("select2/compat/dropdownCss",["jquery","./utils"],function(a,b){function c(a){return null}function d(){}return d.prototype.render=function(d){var e=d.call(this),f=this.options.get("dropdownCssClass")||"";a.isFunction(f)&&(f=f(this.$element));var g=this.options.get("adaptDropdownCssClass");if(g=g||c,-1!==f.indexOf(":all:")){f=f.replace(":all:","");var h=g;g=function(a){var b=h(a);return null!=b?b+" "+a:a}}var i=this.options.get("dropdownCss")||{};return a.isFunction(i)&&(i=i(this.$element)),b.syncCssClasses(e,this.$element,g),e.css(i),e.addClass(f),e},d}),b.define("select2/compat/initSelection",["jquery"],function(a){function b(a,b,c){c.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=c.get("initSelection"),this._isInitialized=!1,a.call(this,b,c)}return b.prototype.current=function(b,c){var d=this;return this._isInitialized?void b.call(this,c):void this.initSelection.call(null,this.$element,function(b){d._isInitialized=!0,a.isArray(b)||(b=[b]),c(b)})},b}),b.define("select2/compat/inputData",["jquery"],function(a){function b(a,b,c){this._currentData=[],this._valueSeparator=c.get("valueSeparator")||",","hidden"===b.prop("type")&&c.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `